@echo off
color 0f
echo Removing leftoverz
rmdir /s /q "%broken_path%\build\mount"
mkdir "%broken_path%\build\mount"
Echo Mounting windows 7 image
color 0e
cd "%programfiles%\Windows AIK\Tools\x86"
c:
imagex /mountrw "%broken_path%\build\winpe.wim" 1 "%broken_path%\build\mount"

color 0a
copy imagex.exe "%broken_path%\build\iso\" /Y

cls 
color 05
echo Instaling custom APPS
"%broken_path%\build\temp\7z\7z.exe" x "%broken_path%\build\temp\apps.zip" -o"%broken_path%\build\mount\program files" -y
copy /y "%broken_path%\build\temp\startnet.cmd" "%broken_path%\build\mount\windows\system32"
copy /y "%broken_path%\home\basic_broken.ico" "%broken_path%\build\mount\"
copy /y "%broken_path%\home\autorun.inf" "%broken_path%\build\mount\"
Dism /image:"%broken_path%\build\mount" /set-ScratchSpace:256
cls
color 09

del %broken_path%\build\ISO\boot\bootfix.bin

echo Closing your Image
imagex /unmount "%broken_path%\build\mount" /commit
copy "%broken_path%\build\winpe.wim" "%broken_path%\build\BrokenISO\sources\boot.wim"

echo Save Sucessful!